package com.me.jingdongshop.ui.activity;

import android.os.Message;
import android.text.Html;
import android.view.View;
import android.widget.ImageButton;
import android.widget.TextView;

import com.me.common.base.BaseActivity;
import com.me.jingdongshop.R;

/**
 * Created by Administrator on 2017/5/8.
 * 我的订单item详情页
 */

public class MyIndentDetailActivity extends BaseActivity {

    private ImageButton imgBack;
    private TextView tvTitle;
    private TextView tvIndentNomber;
    private TextView tvConsignee;
    private TextView tvName;
    private TextView tvPhone;
    private TextView tvAddress;
    private TextView tvIndentStatus;
    private TextView tvSendWay;
    private TextView tvPayWay;
    private TextView tvIndentTime;
    private TextView tvSendTime;
    private TextView tvIsInvoice;
    private TextView tvInvoiceHeader;
    private TextView tvInvoiceConetnt;
    private TextView tvSendRequest;
    private TextView tvColor;
    private TextView tvCount;
    private TextView tvSize;
    private TextView tvPrice;
    private TextView tvPieceNumber;
    private TextView tvMoneyNumber;
    private TextView tvFreightNumber;
    private TextView tvSalePromotionNumber;
    private TextView tvRealPayNumber;

    @Override
    public int getLayoutRes() {
        return R.layout.my_indent_item_detail;
    }

    @Override
    public void initView() {


        imgBack = (ImageButton) findViewById(R.id.img_back);
        tvTitle = (TextView) findViewById(R.id.tv_title);
//        订单收货信息

        tvIndentNomber = (TextView) findViewById(R.id.tv_indent_nomber);
        tvConsignee = (TextView) findViewById(R.id.tv_consignee);
        tvName = (TextView) findViewById(R.id.tv_name);
        tvPhone = (TextView) findViewById(R.id.tv_phone);
        tvAddress = (TextView) findViewById(R.id.tv_address);
//---
        tvIndentStatus = (TextView) findViewById(R.id.tv_indent_status);
        tvSendWay = (TextView) findViewById(R.id.tv_send_way);
        tvPayWay = (TextView) findViewById(R.id.tv_pay_way);
        tvIndentTime = (TextView) findViewById(R.id.tv_indent_time);
        tvSendTime = (TextView) findViewById(R.id.tv_send_time);
        tvIsInvoice = (TextView) findViewById(R.id.tv_is_invoice);
        tvInvoiceHeader = (TextView) findViewById(R.id.tv_invoice_header);
        tvInvoiceConetnt = (TextView) findViewById(R.id.tv_invoice_conetnt);
        tvSendRequest = (TextView) findViewById(R.id.tv_send_request);
//        商品清单
        tvColor = (TextView) findViewById(R.id.tv_color);
        tvCount = (TextView) findViewById(R.id.tv_count);
        tvSize = (TextView) findViewById(R.id.tv_size);
        tvPrice = (TextView) findViewById(R.id.tv_price);
//--
        tvPieceNumber = (TextView) findViewById(R.id.tv_piece_number);
        tvMoneyNumber = (TextView) findViewById(R.id.tv_money_number);
        tvFreightNumber = (TextView) findViewById(R.id.tv_freight_number);
        tvSalePromotionNumber = (TextView) findViewById(R.id.tv_sale_promotion_number);
        tvRealPayNumber = (TextView) findViewById(R.id.tv_real_pay_number);
//        改变一部分字体颜色
        String pieceNumber="5<font color='#8B8B8B'> 件</font>";
        tvPieceNumber.setText(Html.fromHtml(pieceNumber));
        String realPayNumber="<font color='#8B8B8B'>实际付款：</font>￥ 1250";
        tvRealPayNumber.setText(Html.fromHtml(realPayNumber));
    }

    @Override
    public void initListener() {

    }

    @Override
    public void initData() {

    }

    @Override
    public void onClick(View v, int id) {


    }

    @Override
    public void onHttpSuccess(int reqType, Message msg) {

    }

    @Override
    public void onHttpError(int reqType, String error) {

    }
}
